package com.dzm.phone.controller;

import com.dzm.phone.Entity.PhoneInfo;
import com.dzm.phone.service.PhoneService;
import com.dzm.phone.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotBlank;

/**
 * @author Dzm
 * @create 2024-04-11-12:29
 */

@Validated
@CrossOrigin
@RestController
public class PhoneController {

    @Autowired
    private PhoneService phoneService;

    @GetMapping("/getPhoneInfo")
    public Result getPhoneInfo(@NotBlank String phoneNumber) {
//        PhoneInfo phoneInfo = phoneService.getPhoneInfo(phoneNumber);

        return Result.ok(phoneNumber);
    }

}
